import { defHttp } from "@/utils/http";
// ERP 仓库组列表 VO
export interface drugCategoryVO {
	typeName: string;
	grpId: string;
	typeGrpId: string;
	hospId: string;
	sort: number;
	status: string;
	createdBy: string;
}

// ERP 仓库组列表 API
export const whsTypeApi = {
	// 查询仓库组类型列表
	whsTypeList: async (params: any) => {
		return await defHttp.get({ url: `/whs/whs-type/page`, params });
	},
	// 新增仓库组列表
	whsTypeCreate: async (data: drugCategoryVO) => {
		return await defHttp.post({ url: `/whs/whs-type/create`, data });
	},

	// 修改仓库组列表
	whsTypeUpdate: async (data: drugCategoryVO) => {
		return await defHttp.put({ url: `/whs/whs-type/update`, data });
	},

	// 删除仓库组列表
	whsTypeDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/whs-type/delete?id=` + id });
	}
};
